package com.hqyj.javaGraduation.account.service;

import com.hqyj.javaGraduation.account.pojo.Result;
import com.hqyj.javaGraduation.account.pojo.User;

import javax.jws.soap.SOAPBinding;
import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;

public interface UserService {
    User userLogin(User user);

    int registerUser(User user);

    HashMap<String,Object> emailSend(String mail, HttpServletRequest req);
    //redis版本的发送验证码
    HashMap<String,Object> emailRedis(String email);
    //redis版本的邮件登录
    HashMap<String,Object> LoginEmailRedis(String code,String email);
    HashMap<String,Object> updatePwd(User user);

}
